#ifndef CARTOONREADER_H
#define CARTOONREADER_H

#include <QtGui/QMainWindow>
#include "windowwrapper.h"
#include "platformresolver.h"

class QUrl;

class QWebView;

namespace CartoonReader {
    class CartoonReader : public QMainWindow
    {
        Q_OBJECT

    public:
        CartoonReader(QWidget *parent = 0);
        ~CartoonReader();

    private slots:
        void addJavascriptObject();

    private:
        QWebView* m_webView;
        WindowWrapper* m_wrapper;
        PlatformResolver* m_platformResolver;

        QWebView* createWebView();
        void setupUI();
    };
}

#endif // CARTOONREADER_H
